package pers.ijfxu.testngext.context;

import io.ous.jtoml.TomlTable;

/**
 * 提供全局变量
 *
 * @author ijfxu
 * @since 2021/1/27 00:17
 */

public class RunContext {
    /**
     * 执行环境
     */
    public static String runEnv = "test";
    /**将打印信息输出到测试报告中的标志位*/
    public static Boolean log2reporter = Boolean.parseBoolean(System.getProperty("log2reporter", "true"));
    /**
     * 数据存储文件夹
     */
    public static String dataDir = System.getProperty("datadir", "casedata");
    /**
     * 测试脚本文件夹
     */
    public static String scriptDir = System.getProperty("scriptdir", "casescript");
    /**
     * 测试套件目录
     */
    public static String suitesDir = System.getProperty("suitesdir", "suites");
    /**
     * 渲染文件目录
     */
    public static String renderDir = System.getProperty("renderdir", "render");
    /**
     * 主要用于文件渲染
     */
    public static String configFile = System.getProperty("configfile", "config.toml");
    /**存储配置文件中的配置对象*/
    public static TomlTable confTom = new TomlTable();

}
